package com.atchangsha.system.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.atchangsha.system.common.utils.PageUtils;
import com.atchangsha.system.common.utils.Query;
import com.atchangsha.system.dao.CustomerCouponRelationDao;
import com.atchangsha.system.entity.CustomerCouponRelationEntity;
import com.atchangsha.system.service.CustomerCouponRelationService;

@Service("customerCouponRelationService")
public class CustomerCouponRelationServiceImpl extends ServiceImpl<CustomerCouponRelationDao, CustomerCouponRelationEntity> implements CustomerCouponRelationService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<CustomerCouponRelationEntity> page = this.page(
                new Query<CustomerCouponRelationEntity>().getPage(params),
                new QueryWrapper<CustomerCouponRelationEntity>()
        );

        return new PageUtils(page);
    }

}